Optimal. Leaf size=54 \[ \frac {a \log (c+d x)}{d e}-\frac {b \text {PolyLog}(2,-c-d x)}{2 d e}+\frac {b \text {PolyLog}(2,c+d x)}{2 d e} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {6242, 12, 6031}
\begin {gather*} \frac {a \log (c+d x)}{d e}-\frac {b \text {Li}_2(-c-d x)}{2 d e}+\frac {b \text {Li}_2(c+d x)}{2 d e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 6031
Rule 6242
Rubi steps
\begin {align*} \int \frac {a+b \tanh ^{-1}(c+d x)}{c e+d e x} \, dx &=\frac {\text {Subst}\left (\int \frac {a+b \tanh ^{-1}(x)}{e x} \, dx,x,c+d x\right )}{d}\\ &=\frac {\text {Subst}\left (\int \frac {a+b \tanh ^{-1}(x)}{x} \, dx,x,c+d x\right )}{d e}\\ &=\frac {a \log (c+d x)}{d e}-\frac {b \text {Li}_2(-c-d x)}{2 d e}+\frac {b \text {Li}_2(c+d x)}{2 d e}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.09, size = 288, normalized size = 5.33 \begin {gather*} \frac {a \log (c+d x)}{d e}-\frac {i b \left (i \tanh ^{-1}(c+d x) \left (-\log \left (\frac {1}{\sqrt {1-(c+d x)^2}}\right )+\log \left (\frac {i (c+d x)}{\sqrt {1-(c+d x)^2}}\right )\right )+\frac {1}{2} \left (-\frac {1}{4} i \left (\pi -2 i \tanh ^{-1}(c+d x)\right )^2+i \tanh ^{-1}(c+d x)^2+\left (\pi -2 i \tanh ^{-1}(c+d x)\right ) \log \left (1-e^{i \left (\pi -2 i \tanh ^{-1}(c+d x)\right )}\right )+2 i \tanh ^{-1}(c+d x) \log \left (1-e^{-2 \tanh ^{-1}(c+d x)}\right )-2 i \tanh ^{-1}(c+d x) \log \left (\frac {2 i (c+d x)}{\sqrt {1-(c+d x)^2}}\right )-\left (\pi -2 i \tanh ^{-1}(c+d x)\right ) \log \left (2 \sin \left (\frac {1}{2} \left (\pi -2 i \tanh ^{-1}(c+d x)\right )\right )\right )-i \text {PolyLog}\left (2,e^{i \left (\pi -2 i \tanh ^{-1}(c+d x)\right )}\right )-i \text {PolyLog}\left (2,e^{-2 \tanh ^{-1}(c+d x)}\right )\right )\right )}{d e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.79, size = 78, normalized size = 1.44
method | result | size |
risch | \(\frac {b \dilog \left (-d x -c +1\right )}{2 d e}+\frac {a \ln \left (-d x -c \right )}{d e}-\frac {b \dilog \left (d x +c +1\right )}{2 e d}\) | \(54\) |
derivativedivides | \(\frac {\frac {a \ln \left (d x +c \right )}{e}+\frac {b \ln \left (d x +c \right ) \arctanh \left (d x +c \right )}{e}-\frac {b \dilog \left (d x +c +1\right )}{2 e}-\frac {b \ln \left (d x +c \right ) \ln \left (d x +c +1\right )}{2 e}-\frac {b \dilog \left (d x +c \right )}{2 e}}{d}\) | \(78\) |
default | \(\frac {\frac {a \ln \left (d x +c \right )}{e}+\frac {b \ln \left (d x +c \right ) \arctanh \left (d x +c \right )}{e}-\frac {b \dilog \left (d x +c +1\right )}{2 e}-\frac {b \ln \left (d x +c \right ) \ln \left (d x +c +1\right )}{2 e}-\frac {b \dilog \left (d x +c \right )}{2 e}}{d}\) | \(78\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {a}{c + d x}\, dx + \int \frac {b \operatorname {atanh}{\left (c + d x \right )}}{c + d x}\, dx}{e} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {a+b\,\mathrm {atanh}\left (c+d\,x\right )}{c\,e+d\,e\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________